//
//  CollectionViewCell.swift
//  ImagePicker
//
//  Created by less on 2019/9/27.
//  Copyright © 2019 Less. All rights reserved.
//

import UIKit

class CollectionViewCell: UICollectionViewCell {
    
    public lazy var contentImage: UIImageView = {
        let image = UIImageView()
        image.contentMode = .scaleAspectFill
        image.image = UIImage(named: "123456")
        image.clipsToBounds = true
        return image
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        layoutView()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    // MARK:- layoutView
    func layoutView() {
        contentImage.frame = bounds
        contentView.addSubview(contentImage)
    }
    
}
